/*
 ------------------------------------------------------------------------------
 Copyright (C) 2009-2011 Eternal Games.

 This file is part of the Eternal Tech source code.

 The Eternal Tech source code is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or (at your
 option) any later version.

 The Eternal Tech source code is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 more details.

 You should have received a copy of the GNU General Public License along with
 the Eternal Tech source code; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 ------------------------------------------------------------------------------
*/


//
// color.cpp - Color math library
//


#include "../../qcommon/qcommon.h"


color_t	colorTable[32] = {
	{  0,   0,   0, 255},	// Black
	{255,   0,   0, 255},	// Red
	{  0, 255,   0, 255},	// Green
	{  0,   0, 255, 255},	// Blue
	{255, 255,   0, 255},	// Yellow
	{  0, 255, 255, 255},	// Cyan
	{255,   0, 255, 255},	// Magenta
	{255, 255, 255, 255},	// White
	{192, 192, 192, 255},	// Light grey
	{128, 128, 128, 255},	// Mid grey
	{ 64,  64,  64, 255},	// Dark grey
	{192,   0,   0, 255},	// Light red
	{128,   0,   0, 255},	// Mid red
	{ 64,   0,   0, 255},	// Dark red
	{  0, 192,   0, 255},	// Light green
	{  0, 128,   0, 255},	// Mid green
	{  0,  64,   0, 255},	// Dark green
	{192, 192,   0, 255},	// Light yellow
	{128, 128,   0, 255},	// Mid yellow
	{ 64,  64,   0, 255},	// Dark yellow
	{  0,   0, 192, 255},	// Light blue
	{  0,   0, 128, 255},	// Mid blue
	{  0,   0,  64, 255},	// Dark blue
	{  0, 192, 192, 255},	// Light cyan
	{  0, 128, 128, 255},	// Mid cyan
	{  0,  64,  64, 255},	// Dark cyan
	{192,   0, 192, 255},	// Light magenta
	{128,   0, 128, 255},	// Mid magenta
	{ 64,   0,  64, 255},	// Dark magenta
	{255, 192,   0, 255},	// Light orange
	{255, 128,   0, 255},	// Mid orange
	{255,  64,   0, 255},	// Dark orange
};